package com.guniao;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * web容器中进行部署
 * 如果需要将Spring Boot应用程序打包成WAR包，并部署到外部的Servlet容器中，就需要使用该类
 * 
 * @author guniao
 */
public class GuNiaoServletInitializer extends SpringBootServletInitializer
{
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
    {
        return application.sources(GuNiaoApplication.class);
    }
}
